'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app; // 
  router.get('/', controller.home.index);
  // 注册
  router.post('/registry', controller.user.registry);
  //登录
  router.post('/login', controller.user.login);
  router.resources('blog','/api/blog',controller.blog) 
  router.resources('txt','/api/txt',controller.txt)

};
